using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace ESTPrototype
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            // instantiate the list of thumbnails
            this.mThumbnails = new List<Thumbnail>();

            int numberOfThumbnails = 10;

            Thumbnail thumbnail;
            Random random = new Random((int)DateTime.Now.Ticks);

            // loop and create all of these thumbnails
            for (int i = 0; i < numberOfThumbnails; i++)
            {
                thumbnail = new Thumbnail();
                thumbnail.SetNumber(i);

                // add a random position to this thumbnail
                /*if (i % 2 == 0)
                {
                    thumbnail.Tag = new Point(random.Next(0, 750), random.Next(0, 750));
                }*/

                this.mThumbnails.Add(thumbnail);
            }

            // then add these thumbnails to the estmode canvas
            foreach (Thumbnail screenThumbnail in this.mThumbnails)
            {
                this.estmCanvas1.AddScreenThumbnail(screenThumbnail);
            }
        }

        List<Thumbnail> mThumbnails;
    }
}